package com.saku.uiprojecttest.js;/**
 * Created by liumin on 2017/2/26.
 */


import android.util.Log;
import android.webkit.JavascriptInterface;
import android.widget.Toast;

/**
 * User: Missa
 * Date: 2017-02-26
 * Time: 17:11
 * Description: jsBridge javascriptInterface方法， js方法的回调
 */
public class TestObject {

    @JavascriptInterface
    public void startFunction() {
        Log.d("lm", "startFunction 执行java代码");
    }

//    @JavascriptInterface
//    public void getDataFromJs(String data) {
//        Log.d("lm", "getDataFromJs " + data);
//    }

    @JavascriptInterface
    public void getDataFromJs(String data) {
        Log.d("lm", "getDataFromJs " + data);
    }

}
